<div ng-controller="SchematypeCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="">{{'预约'| translate}}</a></li>
        <li class="active">
            项目类型
            <a href="#/schematype/add" id="addNew" class="sui-btn btn-primary">+{{'add_new' | translate}}</a>
        </li>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'#'|translate}}</th>
                <th>{{'类型名称'|translate}}</th>
                <th>{{'created_at'|translate}}</th>
                <th>{{'修改时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="(ke,list) in schema_types">
                <td>{{ke+1}}</td>
                <td>{{list.name}}</td>
                <td>
                    {{list.created_at}}
                </td>
                <td>
                    {{list.updated_at}}
                </td>
                <td>
                    <a href="#/schematype/add?schema_type_id={{list.schema_type_id}}" class="sui-btn btn-primary">{{'编辑'|translate}}</a>
                    <button class="sui-btn btn-danger" ng-click="del(list.schema_type_id)">{{'删除'|translate}}</button>
                </td>
            </tr>
        </tbody>
    </table>
    
    <pager page-no="1" page-size="pageSize" total="schema_types_Total" get-data="getlist(pageNo)"></pager>
</div>